<%@ page import="com.psl.model.userlogin" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%
    userlogin userinfo = (userlogin) session.getAttribute("user");
    if (userinfo == null) {
        response.sendRedirect("/login.do");
    }%>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <link href="/assets/css/text.css" rel="stylesheet" type="text/css">
    <link href="/assets/css/main.css" rel="stylesheet" type="text/css">
    <link href="/assets/css/content.css" rel="stylesheet" type="text/css">
    <script language="javascript" src="/assets/js/common.js"></script>
    <script language="javascript" src="/assets/js/general.js"></script>
    <script language="JavaScript" type="text/JavaScript">
    </script>
    <style>
        #title {
            width: 92%;
            border: 0px;
            margin-bottom: 10px;
        }

        #title td {
            text-align: center;
            height: 20px;
            line-height: 150%
        }

        #title div {
            background-image: url(/assets/img/dot_02.gif);
            background-position: left top;
            background-repeat: no-repeat;
            margin: 0 auto;
            padding-left: 20px;
            text-align: left;
            width: 10%;
            font-size: 15px;
            font-weight: bold;
            color: #CC0000;
            letter-spacing: 2px;
        }
    </style>
</head>
<body>

<table cellspacing="0" cellpadding="0" id="title">
    <tbody>
    <tr>
        <td nowrap="nowrap">
            <div> 暂收凭条报表分析</div>
        </td>
    </tr>
    </tbody>
</table>

<table cellspacing="0" cellpadding="0" class="subtitle" align="center">
<tbody>
<tr>
    <td class="subtitle">暂收凭条报表分析使用说明</td>
    <td id="rightbg">&nbsp;</td>
</tr>
</tbody>
</table>

<table cellpadding="0" cellspacing="0" class="explain_tab" align="center">
    <tbody>
    <tr>
        <td class="explain" colspan="14">
            <p align="left">提示:年月日只选择一个控件使用即可，不要同时使用，否则得不到结果</p>
        </td>
    </tr>
    </tbody>
</table>
<table cellpadding="0" cellspacing="0" class="datalist" align="center">
    <tbody>
    <tr>

        <form action="/halfproductCount.do" method="get">
            <td colspan="6">供货单位:&nbsp;&nbsp;&nbsp;
                <jsp:include page="supplier.jsp"/>
            </td>
            <td align="center" colspan="6">
                送货日期:
                &nbsp;&nbsp;&nbsp;
                <select name="year" class="nobtn">
                    <option value="">---年</option>
                    <option value="2017">2017</option>
                    <option value="2018">2018</option>
                    <option value="2019">2019</option>
                    <option value="2020">2020</option>
                    <option value="2021">2021</option>
                    <option value="2022">2022</option>
                </select>
                &nbsp;&nbsp;&nbsp;<input type="month" class="nobtn" name="month" value="">
                &nbsp;&nbsp;&nbsp;<input type="date" class="nobtn" name="date" value="">
                &nbsp;&nbsp;&nbsp;<input type="submit" value="查询" class="nobtn">
                &nbsp;&nbsp;&nbsp;<input type="button" value="打印" class="nobtn" onclick="window.print();">
        </form>
        </td>
    </tr>
    <tr><td colspan="12"></td></tr>
    <tr><td colspan="12"></td></tr>
    <tr>
        <th height="25" align="center">铸件/配件名称</th>
        <th align="center">规格</th>
        <th align="center">数量</th>
        <th align="center">商标</th>
        <th align="center">压力</th>
        <th align="center">单重</th>
        <th align="center">吨价</th>
        <th align="center">总重</th>
        <th align="center">送货单位</th>
        <th align="center">送货日期</th>
        <th align="center">送货人员</th>
        <th align="center">凭条编号</th>
    </tr>
    <c:forEach items="${pl}" var="p">
        <tr>
            <td height="25" align="center">${p.h_name}
            </td>
            <td height="25" align="center">${p.h_size}
            </td>
            <td height="25" align="center">${p.h_num}
            </td>
            <td height="25" align="center">${p.h_r}
            </td>
            <td height="25" align="center">${p.h_n}
            </td>
            <td height="25" align="center">${p.h_uw}
            </td>
            <td height="25" align="center">${p.h_dj}
            </td>
            <td height="25" align="center">
                <fmt:formatNumber value="${p.h_num * p.h_uw}" type="currency" pattern="#.00"/>
            </td>
            <td height="25" align="center">${p.h_area}
            </td>
            <td height="25" align="center">${p.h_date}
            </td>
            <td height="25" align="center">${p.h_people}
            </td>
            <td height="25" align="center">${p.h_ticketno}
            </td>
        </tr>
    </c:forEach>
    </tbody>
</table>
</body>
</html>